﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ecobee.Net
{
	public class ApiObjectCollectionChangedEventArgs : EventArgs
	{
		private string _propertyName = string.Empty;
		private NotifyCollectionChangedAction _action = NotifyCollectionChangedAction.Reset;

		public ApiObjectCollectionChangedEventArgs(string propertyName, NotifyCollectionChangedAction action)
		{
			this.PropertyName = propertyName;
			this.Action = action;
		}

		public string PropertyName
		{
			get
			{
				return _propertyName;
			}
			private set
			{
				_propertyName = value;
			}
		}

		public NotifyCollectionChangedAction Action
		{
			get
			{
				return _action;
			}
			private set
			{
				_action = value;
			}
		}
	}
}
